#!/usr/bin/python
# -*- coding: iso-8859-15 -*-

##################
# MODULE STARTUP
##################

import time

HELP = '''\

'''

last_time = None
previous_question = None

##################
# MODULE EVENT HANDLERS
##################
# def on_eventname(connection, event, bot)

def on_pubmsg(connection, event, bot):
    global last_time, previous_question
    msg = event.arguments()[0]
    if msg[len(msg)-1] == '?':
        last_time = time.time()
    previous_question = True
    


##################
# MODULE FUNCTIONS
##################